package com.erongdu.wireless.tools.Rx;

import java.text.DecimalFormat;
import java.util.Random;

/**
 * @author vondear
 * @date 2017/1/13
 */

public class RxConstants {


    /**
     * 速度格式化
     */
    public static final DecimalFormat FORMAT_ONE = new DecimalFormat("#.#");
    /**
     * 距离格式化
     */
    public static final DecimalFormat FORMAT_TWO = new DecimalFormat("#.##");
    /**
     * 速度格式化
     */
    public static final DecimalFormat FORMAT_THREE = new DecimalFormat("#.###");
    //微信统一下单接口
    public static final String WX_TOTAL_ORDER = "https://api.mch.weixin.qq.com/pay/unifiedorder";
    //图片名称
    public static final String getPictureName() {
        return RxTimeTool.getCurrentDateTime(DATE_FORMAT_LINK) + "_" + new Random().nextInt(1000) + ".jpg";
    }

    //Date格式
    public static final String DATE_FORMAT_LINK = "yyyyMMddHHmmssSSS";

    //Date格式 常用
    public static final String DATE_FORMAT_DETACH = "yyyy-MM-dd HH:mm:ss";
    //Date格式 常用
    public static final String DATE_FORMAT_DAY = "yyyy-MM-dd";
    public static final String DATE_FORMAT_DAY2 = "yyyy-MM-dd HH:mm";
    //Date格式 带毫秒
    public static final String DATE_FORMAT_DETACH_SSS = "yyyy-MM-dd HH:mm:ss SSS";

    public static final String DATE_FORMAT_MM_DD= "MM月dd日";


    public static final String DATE_FORMAT_MM_DD_MM_SS  = "MM月dd日 HH:mm";

    public static final String DATE_FORMAT_MM_DD_MM_SS2  = "MM-dd HH:mm";

    public static final String DATE_FORMAT_HH_MM = "HH:mm";

    //时间格式 分钟：秒钟 一般用于视频时间显示
    public static final String DATE_FORMAT_MM_SS = "mm:ss";
}
